//
//  APIError.m
//  Request
//
//  Created by 侯伟 on 2019/4/22.
//  Copyright © 2019年 侯伟. All rights reserved.
//

#import "APIError.h"

@implementation APIError

+ (instancetype)errorWith:(NSInteger)errorCode msg:(NSString*)msg{
    
    APIError* error = [APIError new];
    error.errorCode = errorCode;
    error.errorMsg = msg;
    
    return error;
}

@end
